home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Univers Interactif 3
/
INTERACTIF.BIN
/
pc
/
planeten
/
internet
/
macslip2.6up
/
MacSLIP Folder
/
Autobaud.samples
< prev
next >
Wrap
Text File
|
1995-01-11
|
1KB
|
38 lines
#
# This script contains a sample fragment of script code for
# initiating a connection with a Cisco terminal server
# that requires using carriage returns to autobaud.
# It may also be useful for connecting with any other system
# that requires an autobaud sequence of several returns to
# start a session.
#
# You should paste this sample into your script where appropriate --
# probably just after the section where you dial the phone and have
# received a "CONNECT" from the modem.
#
#
# Send several initial carriage returns, then wait a second.
#
flush
send \r\r\r\r
delay 1
#
# Now, send a return once a second until we match the system
# prompt. In this case we just look for the ">" character. You
# may need to change this to look for "login:", "Username:", etc.
# We give up and abort the script after 10 tries.
#
setcount 0 0
label auto
flush
ifcountgt 0 10 return 0
send \r
{
ifmatch ">" break
iftime 1 goto auto
}
# script continues here after successful autobaud